package testClasses.misc;

import eventManager.EventManager;
import eventManager.EventPortal;

public class EventPortalTest {

	
	public void execute() {
		EventPortalTestObj1 obj1 = new EventPortalTestObj1();
		EventPortalTestObj2 obj2 = new EventPortalTestObj2();
		
		EventPortal.addListener(obj2, obj2.getEventTypes());
		
		obj1.sendEvent();
		EventPortal.procEvents(1000);
		
	}
	
	
	
	
	
	
	
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		EventPortalTest test = new EventPortalTest();
		EventManager eventManager = new EventManager();
		EventPortal eventPortal = new EventPortal(eventManager);
		
		
		test.execute();

	}

}
